package jnpf.service;


import jnpf.model.ragFlow.chunk.*;
import jnpf.model.ragFlow.common.RagFlowApiResult;

public interface RagChunksService {
    /**
     * 添加数据块
     */
    RagFlowApiResult addChunks(String datasetId, String documentId, AddChunksRequest request) throws Exception;

    /**
     * 列出数据块
     */
    RagFlowApiResult listChunks(String datasetId, String documentId, ListChunksRequest request) throws Exception;

    /**
     * 删除数据块
     */
    RagFlowApiResult deleteChunks(String datasetId, String documentId, DeleteChunksRequest request) throws Exception;

    /**
     * 更新数据块
     */
    RagFlowApiResult updateChunk(String datasetId, String documentId, String chunkId, UpdateChunkRequest request) throws Exception;

    /**
     * 检索数据块
     */
    RagFlowApiResult retrieveChunks(RetrieveChunksRequest request) throws Exception;
}
